package com.leung.machine.mapper;


import com.leung.machine.entity.Order;
import com.leung.machine.entity.OrderItem;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 丨一
 * @version 1.0
 * @title OrderItemMapper
 * @description:
 * @date 2025/9/30 下午5:17
 */

@Mapper
public interface OrderItemMapper {

    @Insert("insert into order_item (order_id,item_name,quantity,price) values (#{orderId},#{itemName},#{quantity},#{price})")
    Integer insert(OrderItem orderItem);

}
